<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ include file="/WEB-INF/jsp/struts/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="style/home.css" type="text/css">
<link href="./style/alternative.css" media="all" rel="stylesheet" />
<script type='text/javascript' src='script/prototype.js'></script>
<script type='text/javascript' src='script/common.js'></script>

<STYLE TYPE="text/css">
#friendTab {
border: 2px broove #eee;
padding-top: 1em;
}
#friendTab td{
padding:0.2em;
white-space:nowrap;
}
#friendTab a{
font-size:1em;color:#330099
}
</STYLE>

</head>
<body onload="HTMLArea.init();">
<c:choose>
<c:when test="${empty friend}">
<c:set var="handler" value="address.htm?method=create" />
</c:when>
<c:otherwise>
<c:set var="handler" value="address.htm?method=update" />
</c:otherwise>
</c:choose>
<div id="content">
<div id="content_inner">
<form name="friendForm" id="friendForm" action="${handler}"  method="post">
<TABLE id="friendTab" class="its" width="95%">
<thead>
<tr><th colspan="2" align="center">我的帐号</th></tr>
  </thead>
  <TR>
    <TD width="10%">姓名:</TD>
    <TD>
    <input type="text" NAME="name" id="name" style="width:70%" value="${friend.name}"/>
    </TD>
  </TR>
  <TR>
    <TD>电话:</TD>
    <TD>
    <input type="text" NAME="phone" id="phone" style="width:70%"  value="${friend.phone}"/>
    </TD>
  </TR>
  <TR>
    <TD>手机: </TD>
    <TD>
    <input type="text" NAME="mobile" id="mobile" style="width:70%"  value="${friend.mobile}"/>
    </TD>
  </TR>
  <TR>
    <TD>电子邮件: </TD>
    <TD>
    <input type="text" NAME="email" id="email" style="width:70%"  value="${friend.email}"/>
    </TD>
  </TR>
    <TR>
    <TD>IM: </TD>
    <TD>
    <input type="text" NAME="im" id="im" style="width:70%"  value="${friend.im}"/>
    </TD>
  </TR>
  <TR>
    <TD>生日: </TD>
    <TD>
    <input type="text" NAME="birthday" id="birthday" style="width:70%"  value="${friend.birthday}"/>
    </TD>
  </TR>

  <TR>
    <TD colspan="2" align="center">
    <input type="hidden" name="friendID" id="friendID" value="${friend.friendID}">
    <INPUT TYPE="submit" value="确认">&nbsp;&nbsp;
    <INPUT TYPE="reset" value="取消" onclick="javascript:history.back()"></TD>
  </TR>
  </TABLE>
</FORM>
</div></div>
</body>
</html>